package com.catsic.zcjc.service;

import com.catsic.base.BaseService;
import com.catsic.zcjc.condition.EquipMaintainCondition;
import com.catsic.zcjc.entity.EquipMaintain;
import com.catsic.zcjc.form.EquipMaintainForm;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface EquipMaintainService extends BaseService<EquipMaintain,String>{
	/**
	 * 添加
	 * @param form
	 */
	public EquipMaintain add(EquipMaintainForm form);

	/**
	 * 更新
	 * @param form
	 */
	public EquipMaintainForm update(EquipMaintainForm form);

	/**
	 * delete:通过id删除
	 * @author yangyd
	 * @param id
	 * @return
	 */
	public void delete(String id);

	/**
	 * 通过Id查询
	 * @param
	 */
	public EquipMaintain findById(String id);


	/**
	 * 分页查询维修记录
	 * @param condition
	 * @param pageable
	 * @return
	 */
	public Page<EquipMaintainForm> findAll(EquipMaintainCondition condition, Pageable pageable);
}
